/**
 * Created by tessi on 2016/10/9.
 */
var mongodb = require('./mongodb.js');
var Schema = mongodb.mongoose.Schema;
var NewsSchema = Schema({
    title: String,
    content: String,
    author: String,
    create_date: {type:Date, default:Date.now()}
});

var News = mongodb.mongoose.model('News', NewsSchema);
var NewsDAO = function () {};

module.exports = new NewsDAO();